/**
 * Created by 飞 on 2017/4/26.
 */
var oTag = document.getElementById("tag"),
    aLi = oTag.getElementsByTagName("li"),
    oContent = document.getElementById("content");

for(var i = 0;i<aLi.length;i++){
    aLi[i].onclick=function(){
        for(var j =0 ;j<aLi.length;j++){
            aLi[j].className= "";
        }
        this.className="selected"
    }
}


